package bpmjs;

class Color
{
	public static inline function toContextRGBA(r : Int, g : Int, b : Int, a : Float) : String
	{
		return "rgba(" + (r == 0 ? "0" : untyped r) + "," + (g == 0 ? "0" : untyped g) + "," + (b == 0 ? "0" : untyped b) + "," + (a == 0 ? "0" : untyped a) + ")";
	}
}
